
using AutoMapper;
using JYJ.AiYard.StationManagement.TbObjects;
using JYJ.AiYard.StationManagement.TbObjects.Dtos;

namespace JYJ.AiYard.StationManagement.TbObjects.Mapper
{

	/// <summary>
    /// 配置TbObjects的AutoMapper
    /// </summary>
	internal static class TbObjectsMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <TbObjects,TbObjectsListDto>();
            configuration.CreateMap <TbObjectsListDto,TbObjects>();

            configuration.CreateMap <TbObjectsEditDto,TbObjects>();
            configuration.CreateMap <TbObjects,TbObjectsEditDto>();

            configuration.CreateMap<TbObjects, StationObjectsDTO>();

            configuration.CreateMap<StationObjectsDTO, TbObjects>();

        }
	}
}
